package oop4.animal;

public class Cat extends Pet {
    Cat(String name, String strain, int weight, int age, char sex, int love, int health) {
        super(name, strain, weight, age, sex, love, health);
    }

    public void grab(String mouse) {
        System.out.println("猫咪" + super.getName() + "抓住了老鼠" + mouse);
    }

    public void climb() {
        System.out.println("猫咪" + super.getName() + "在爬树");
    }

    @Override
    public void eat() {
        System.out.println("小猫" + this.getName() + "吃猫粮");
    }

    @Override
    public String toString() {
        return "猫咪"+getName();
    }
}
